// 日志的输出
// code 👍 not code 💩
const l = console
const theme = '#f8d'
const underline = function(str){
    return str.replace(/\B([A-Z])/g, '-$1').toLowerCase()
}
const logger = {
    color: function(message,style){
        let styles = ''
        Object.keys(style).forEach(item=>{
            styles += `${underline(item)}:${style[item]};`
        })
        l.log(`%c ${message}`,styles)
    },
    table: function(){
        l.log()
    },
    warn: function(){
        
    },


}